// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.syncAmazon.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.JoinField;
import com.fowo.api.entity.ShopInfo;
import com.fowo.api.entity.SysCountry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * SellOrder
 */
@DS("ds24")
@Data
@TableName(value = "tmp_sell_order", autoResultMap = true)
@Schema(title = "销售订单临时表")
public class TmpSellOrder implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 店铺
   */
  @TableField(value = "`sid`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long sid;

  /**
   * 国家
   */
  @TableField(value = "`country`")
  @JoinField(SysCountry.class)
  @Schema(title = "国家")
  private Long country;

  /**
   * 订单号
   */
  @TableField(value = "`amazon_order_id`")
  @Schema(title = "订单号")
  private String amazonOrderId;

  /**
   * 买家姓名
   */
  @TableField(value = "`buyer_name`")
  @Schema(title = "买家姓名")
  private String buyerName;

  /**
   * 买家邮箱
   */
  @TableField(value = "`buyer_email`")
  @Schema(title = "买家邮箱")
  private String buyerEmail;

  /**
   * 订单总额
   */
  @TableField(value = "`order_total_amount`")
  @Schema(title = "订单总额")
  private String orderTotalAmount;

  /**
   * 订单金额币种
   */
  @TableField(value = "`currency`")
  @Schema(title = "订单金额币种")
  private String currency;

  /**
   * 订单金额币种符号
   */
  @TableField(value = "`icon`")
  @Schema(title = "订单金额币种符号")
  private String icon;

  /**
   * 订购时间
   */
  @TableField(value = "`purchase_date_local`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "订购时间")
  private java.util.Date purchaseDateLocal;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 请求评论状态
   */
  @TableField(value = "`request_review_status`")
  @Schema(title = "请求评论状态")
  private String requestReviewStatus;

  /**
   * 状态
   */
  @TableField(value = "`order_status`")
  @Schema(title = "状态")
  private String orderStatus;

  /**
   * 配送方式
   */
  @TableField(value = "`fulfillment_channel`")
  @Schema(title = "配送方式")
  private String fulfillmentChannel;

  /**
   * 是否为推广订单
   */
  @TableField(value = "`is_assessed`")
  @Schema(title = "是否为推广订单")
  private Boolean isAssessed;

  /**
   * 是否多渠道订单
   */
  @TableField(value = "`is_mcf_order`")
  @Schema(title = "是否多渠道订单")
  private Boolean isMcfOrder;

  /**
   * 是否为退货订单
   */
  @TableField(value = "`is_return_order`")
  @Schema(title = "是否为退货订单")
  private Boolean isReturnOrder;

  /**
   * 是否已换货
   */
  @TableField(value = "`is_replaced_order`")
  @Schema(title = "是否已换货")
  private Boolean isReplacedOrder;

  /**
   * 是否为换货订单
   */
  @TableField(value = "`is_replacement_order`")
  @Schema(title = "是否为换货订单")
  private Boolean isReplacementOrder;

  /**
   * 订单更新时间
   */
  @TableField(value = "`last_update_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "订单更新时间")
  private java.util.Date lastUpdateDate;

  /**
   * 付款时间
   */
  @TableField(value = "`posted_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "付款时间")
  private java.util.Date postedDate;

  /**
   * 用户收货地址
   */
  @TableField(value = "`address`")
  @Schema(title = "用户收货地址")
  private String address;

  /**
   * 邮编
   */
  @TableField(value = "`postal_code`")
  @Schema(title = "邮编")
  private String postalCode;

  /**
   * 用户收货名称
   */
  @TableField(value = "`name`")
  @Schema(title = "用户收货名称")
  private String name;

  /**
   * 手机号
   */
  @TableField(value = "`phone`")
  @Schema(title = "手机号")
  private String phone;

  /**
   * 发货地址
   */
  @TableField(value = "`shipping_address`")
  @Schema(title = "发货地址")
  private String shippingAddress;

  /**
   * 是否为B2B订单
   */
  @TableField(value = "`is_business_order`")
  @Schema(title = "是否为B2B订单")
  private Boolean isBusinessOrder;

  /**
   * 是否prime订单
   */
  @TableField(value = "`is_prime`")
  @Schema(title = "是否prime订单")
  private Boolean isPrime;

  /**
   * 是否优先配送订单
   */
  @TableField(value = "`is_premium_order`")
  @Schema(title = "是否优先配送订单")
  private Boolean isPremiumOrder;

  /**
   * 是否促销订单
   */
  @TableField(value = "`is_promotion`")
  @Schema(title = "是否促销订单")
  private Boolean isPromotion;

  /**
   * 费用是否含税
   */
  @TableField(value = "`taxes_included`")
  @Schema(title = "费用是否含税")
  private Boolean taxesIncluded;


  /**
   * 销售渠道
   */
  @TableField(value = "`sales_channel`")
  @Schema(title = "销售渠道")
  private String salesChannel;

  /**
   * 付款方式
   */
  @TableField(value = "`payment_method`")
  @Schema(title = "付款方式")
  private String paymentMethod;

  /**
   * 发货时限
   */
  @TableField(value = "`earliest_ship_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "发货时限")
  private java.util.Date earliestShipDate;

  /**
   * 最晚发货时间
   */
  @TableField(value = "`latest_ship_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "最晚发货时间")
  private java.util.Date latestShipDate;

  /**
   * 最晚送达时间
   */
  @TableField(value = "`latest_delivery_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "最晚送达时间")
  private java.util.Date latestDeliveryDate;

  /**
   * 发货日期
   */
  @TableField(value = "`shipment_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "发货日期")
  private java.util.Date shipmentDate;

  /**
   * 配送服务
   */
  @TableField(value = "`ship_service_level`")
  @Schema(title = "配送服务")
  private String shipServiceLevel;

  /**
   * 物流商
   */
  @TableField(value = "`carrier`")
  @Schema(title = "物流商")
  private String carrier;

  /**
   * 运单号
   */
  @TableField(value = "`tracking_number`")
  @Schema(title = "运单号")
  private String trackingNumber;

  /**
   * 送货预计
   */
  @TableField(value = "`earliest_delivery_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "送货预计")
  private java.util.Date earliestDeliveryDate;


  @TableField(value = "`is_update`")
  @Schema(title = "是否更新")
  private Boolean isUpdate;

}
